﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Windows;

namespace Pavilion.DesignerTool.ViewTools
{
    public class DragAwareListBoxItem : ListBoxItem
    {
        public event Action ConnectionDragging;

        private void OnConnectionDragging()
        {
            if (ConnectionDragging != null)
            {
                ConnectionDragging();
            }
        }

        public void RespondToDrag()
        {
            this.OnConnectionDragging();
        }
    }
}
